package net.liuwenwen;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Account account = new Account(10001,0.00);
        System.out.println("您的账户信息如下：");
        System.out.println("账户名称：" + account.getAccountNumber());
        System.out.println("账户余额：" + account.getBalance());
        while(true) {
            System.out.println("请输入选项：");
            System.out.println("1.存款\n2.取款\n3.退出");
            Scanner in = new Scanner(System.in);
            int temp = in.nextInt();
            if(temp == 1) {
                account.depositMoney();
            }
            else if(temp == 2) {
                account.withdrawMoney();
            }
            else if(temp == 3) {
                break;
            }
        }
    }
}
